<template>
  <div>
    {{data}}
  </div>
</template>

<script>
import gql from './apollo'
  export default {
    name:'demo',
    data(){
      return {
        data:{
          list:null
        }
      }
    },
  created(){
    this.$apollo.query({
      query: gql.demo1
    })
    .then(response => {
      console.log(response)
    })
    .catch(error => {
    console.log(error)
    })
  },
  methods:{

  }
}
</script>

<style scoped>

</style>
